package cn.zysuyuan.item.mapper;

import cn.zysuyuan.item.entity.Permission;

import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-03-17 11:08
 */
public interface PermissionMapper {
    int save(Permission perm);

    List<Permission> findAll(Map<String, Object> map);

    Permission findById(String id);

    int update(Permission permission);

    int deleteById(String id);

    int deleteByPid(String id);

    List<String> findSonPermission(String id);
}
